﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using YOYO.HRMS.Models;
using YOYO.HRMS.Utility;

namespace YOYO.HRMS.BusinessLogic.SystemManagement
{
    interface IUserService:IBaseService<User>
    {
        /// <summary>
        /// 获取用户有权限登陆的公司列表
        /// </summary>
        /// <param name="user">用户</param>
        /// <returns></returns>
        //IEnumerable<Corporate> GetCorporateList(User user);

        /// <summary>
        /// 登陆验证
        /// </summary>
        /// <param name="corporateID">登陆公司ID</param>
        /// <param name="userCode">用户编号</param>
        /// <param name="passWord">用户密码</param>
        /// <returns></returns>
        UserMessage LoginVerify(long corporateID, string userCode, string passWord);
            
        bool ChangePassword();
    }
}
